package com.csj.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csj.demo.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 简单的dao层只需要继承JpaRepository接口，即可，
 * 两个参数，分别表示 —— 实体类型、主键类型
 * 复杂sql语句再自己增加接口
 * @author linhongcun
 *
 */
//public interface EmployeeDao extends JpaRepository<Employee,Integer>{
//
//
//}
@Repository
public interface EmployeeDao extends BaseMapper<Employee> {
    public List<Employee> SelectAll();

    int add(Employee employee);
}